Base get_fingerprint on a PackageId
authorAlex Crichton <alex@alexcrichton.com>
Fri, 25 Jul 2014 02:14:18 +0000 (19:14 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 25 Jul 2014 02:32:49 +0000 (19:32 -0700)
commit73947e5c3bc80d9241feb3d55950a8c1dbb6850f
treea44c4fdfd48530ca4898ec63a8587f8af7fff4ff
parentc1838f6eff1eb61cb153a320acc5ece1d147d725
Base get_fingerprint on a PackageId

The fingerprinting code was erroneously using all sources from a manifest when
calculating the fingerprint which meant that sources not yet downloaded were
attempted to be fingerprinted.

The correct source to fingerprint is located in the SourceId field of the
resolved PackageId.

Closes #259
src/cargo/core/package.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
tests/test_cargo_compile_git_deps.rs
tests/test_cargo_compile_path_deps.rs
tests/test_cargo_compile_plugins.rs